pub enum Penalty {
None,
Failure,
Ban,
}Expand description
ピアを外すときの罰。catapult と同じく、締め出すのは、どの規則から見ても壊れているものを返したときだけ
Variants§
None
通信に失敗したか、こちらの都合。間を空けてまた試してよい
Failure
こちらの規則と状態で合わないものを返した。失敗を数え、間を長く空ける
Ban
状態を見ない確かめに落ちるもの(形、署名)を返した。しばらく締め出す
Trait Implementations§
impl Copy for Penalty
impl Eq for Penalty
impl StructuralPartialEq for Penalty
Auto Trait Implementations§
impl Freeze for Penalty
impl RefUnwindSafe for Penalty
impl Send for Penalty
impl Sync for Penalty
impl Unpin for Penalty
impl UnsafeUnpin for Penalty
impl UnwindSafe for Penalty
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more