pub struct ServerHandle { /* private fields */ }Expand description
Handle to the server async task. The task is shutdown when the handle is dropped.
Implementations§
Source§impl ServerHandle
impl ServerHandle
Sourcepub fn new(tx: Sender<ServerSetting>) -> Self
pub fn new(tx: Sender<ServerSetting>) -> Self
Construct a ServerHandle from its fields
This function is only required for the C bindings
Sourcepub async fn set_decode_level(
&mut self,
level: DecodeLevel,
) -> Result<(), Shutdown>
pub async fn set_decode_level( &mut self, level: DecodeLevel, ) -> Result<(), Shutdown>
Change the decoding level for future sessions and all active sessions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerHandle
impl RefUnwindSafe for ServerHandle
impl Send for ServerHandle
impl Sync for ServerHandle
impl Unpin for ServerHandle
impl UnwindSafe for ServerHandle
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