pub struct Denial {
pub code: u16,
}Expand description
A gate’s refusal of a write.
let d = net_io::Denial { code: 403 };
assert_eq!(d.code, 403);Fields§
§code: u16The gate’s code, given to Session::on_denied.
Trait Implementations§
impl Copy for Denial
impl Eq for Denial
impl StructuralPartialEq for Denial
Auto Trait Implementations§
impl Freeze for Denial
impl RefUnwindSafe for Denial
impl Send for Denial
impl Sync for Denial
impl Unpin for Denial
impl UnsafeUnpin for Denial
impl UnwindSafe for Denial
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