Struct rsocket_rust::ClientBuilder
source · pub struct ClientBuilder<T, C> { /* private fields */ }
Implementations§
source§impl<T, C> ClientBuilder<T, C>
impl<T, C> ClientBuilder<T, C>
pub fn fragment(self, mtu: usize) -> Self
pub fn transport(self, transport: T) -> Self
pub fn setup(self, setup: Payload) -> Self
pub fn keepalive( self, tick_period: Duration, ack_timeout: Duration, missed_acks: u64 ) -> Self
pub fn mime_type( self, metadata_mime_type: impl Into<String>, data_mime_type: impl Into<String> ) -> Self
pub fn data_mime_type(self, mime_type: impl Into<String>) -> Self
pub fn metadata_mime_type(self, mime_type: impl Into<String>) -> Self
pub fn acceptor(self, acceptor: ClientResponder) -> Self
pub fn on_close(self, callback: Box<dyn FnMut() + Sync + Send>) -> Self
Auto Trait Implementations§
impl<T, C> !RefUnwindSafe for ClientBuilder<T, C>
impl<T, C> Send for ClientBuilder<T, C>
impl<T, C> Sync for ClientBuilder<T, C>
impl<T, C> Unpin for ClientBuilder<T, C>
impl<T, C> !UnwindSafe for ClientBuilder<T, C>
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