Struct remoc::rch::base::PortSerializer
source · pub struct PortSerializer { /* private fields */ }
Available on crate feature
rch
only.Expand description
Gathers ports to send to the remote endpoint during object serialization.
Implementations§
source§impl PortSerializer
impl PortSerializer
sourcepub fn connect<E>(
callback: impl FnOnce(Connect) -> BoxFuture<'static, ()> + Send + 'static
) -> Result<u32, E>where
E: Error,
pub fn connect<E>(
callback: impl FnOnce(Connect) -> BoxFuture<'static, ()> + Send + 'static
) -> Result<u32, E>where
E: Error,
Open a chmux port to the remote endpoint.
Returns the local port number and calls the specified function with the connect object.
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 PortSerializer
impl !RefUnwindSafe for PortSerializer
impl Send for PortSerializer
impl !Sync for PortSerializer
impl Unpin for PortSerializer
impl !UnwindSafe for PortSerializer
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