pub struct SpscFace { /* private fields */ }Expand description
Engine-side SPSC SHM face.
Create with SpscFace::create; register with the engine via
ForwarderEngine::add_face. Give the name to the application so it can
call SpscHandle::connect.
Implementations§
Trait Implementations§
Source§impl Face for SpscFace
impl Face for SpscFace
fn id(&self) -> FaceId
fn kind(&self) -> FaceKind
Source§async fn recv(&self) -> Result<Bytes, FaceError>
async fn recv(&self) -> Result<Bytes, FaceError>
Receive the next packet. Blocks until a packet arrives or the face closes.
Source§async fn send(&self, pkt: Bytes) -> Result<(), FaceError>
async fn send(&self, pkt: Bytes) -> Result<(), FaceError>
Send a packet. Must not block the caller; use internal buffering. Read more
Source§fn remote_uri(&self) -> Option<String>
fn remote_uri(&self) -> Option<String>
Remote URI (e.g.
udp4://192.168.1.1:6363). Returns None for face
types that don’t have a meaningful remote endpoint.Auto Trait Implementations§
impl Freeze for SpscFace
impl !RefUnwindSafe for SpscFace
impl Send for SpscFace
impl Sync for SpscFace
impl Unpin for SpscFace
impl !UnwindSafe for SpscFace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more