pub trait ServerRef<'target, Target, Codec>: ServerBasewhere
Self: Sized,{
// Required methods
fn new(
target: &'target Target,
request_buffer: usize,
) -> (Self, Self::Client);
fn serve<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait;
}
Available on crate feature
rtc
only.Expand description
A server of a remotable trait taking the target object by reference.
Required Methods§
sourcefn new(target: &'target Target, request_buffer: usize) -> (Self, Self::Client)
fn new(target: &'target Target, request_buffer: usize) -> (Self, Self::Client)
Creates a new server instance for the target object.
Object Safety§
This trait is not object safe.