Struct remoc::rch::base::PortDeserializer
source · pub struct PortDeserializer { /* private fields */ }
Available on crate feature
rch
only.Expand description
Gathers ports sent from the remote endpoint during deserialization.
Implementations§
source§impl PortDeserializer
impl PortDeserializer
sourcepub fn accept<E>(
remote_port: u32,
callback: impl FnOnce(PortNumber, Request) -> BoxFuture<'static, ()> + Send + 'static
) -> Result<u32, E>where
E: Error,
pub fn accept<E>(
remote_port: u32,
callback: impl FnOnce(PortNumber, Request) -> BoxFuture<'static, ()> + Send + 'static
) -> Result<u32, E>where
E: Error,
Accept the chmux port with the specified remote port number sent from the remote endpoint.
Returns the local port number and calls the specified function with the received connect request.
sourcepub fn storage<E>() -> Result<AnyStorage, E>where
E: Error,
pub fn storage<E>() -> Result<AnyStorage, E>where
E: Error,
Returns the data storage of the channel multiplexer.
Auto Trait Implementations§
impl Freeze for PortDeserializer
impl !RefUnwindSafe for PortDeserializer
impl Send for PortDeserializer
impl !Sync for PortDeserializer
impl Unpin for PortDeserializer
impl !UnwindSafe for PortDeserializer
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