pub struct State(/* private fields */);
Expand description
State of the kTLS connection.
Implementations§
Source§impl State
impl State
Sourcepub const fn is_read_closed(&self) -> bool
pub const fn is_read_closed(&self) -> bool
Whether the read side is closed.
Bits: 0..1
Sourcepub const fn with_is_read_closed_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_is_read_closed_checked(self, value: bool) -> Result<Self, ()>
Whether the read side is closed.
Bits: 0..1
Sourcepub const fn with_is_read_closed(self, value: bool) -> Self
pub const fn with_is_read_closed(self, value: bool) -> Self
Whether the read side is closed.
Bits: 0..1
Sourcepub const fn set_is_read_closed(&mut self, value: bool)
pub const fn set_is_read_closed(&mut self, value: bool)
Whether the read side is closed.
Bits: 0..1
Sourcepub const fn set_is_read_closed_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_is_read_closed_checked( &mut self, value: bool, ) -> Result<(), ()>
Whether the read side is closed.
Bits: 0..1
Sourcepub const fn is_write_closed(&self) -> bool
pub const fn is_write_closed(&self) -> bool
Whether the write side is closed.
Bits: 1..2
Sourcepub const fn with_is_write_closed_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_is_write_closed_checked(self, value: bool) -> Result<Self, ()>
Whether the write side is closed.
Bits: 1..2
Sourcepub const fn with_is_write_closed(self, value: bool) -> Self
pub const fn with_is_write_closed(self, value: bool) -> Self
Whether the write side is closed.
Bits: 1..2
Sourcepub const fn set_is_write_closed(&mut self, value: bool)
pub const fn set_is_write_closed(&mut self, value: bool)
Whether the write side is closed.
Bits: 1..2
Trait Implementations§
impl Copy for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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