pub struct ForcedIpEntry {
pub ip: String,
pub port: u16,
pub expire_ts: i64,
}Fields§
§ip: String§port: u16§expire_ts: i64Unix 时间戳(秒),0 表示无过期(保守处理为立即过期)。
Implementations§
Trait Implementations§
Source§impl Clone for ForcedIpEntry
impl Clone for ForcedIpEntry
Source§fn clone(&self) -> ForcedIpEntry
fn clone(&self) -> ForcedIpEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForcedIpEntry
impl Debug for ForcedIpEntry
Source§impl PartialEq for ForcedIpEntry
impl PartialEq for ForcedIpEntry
impl Eq for ForcedIpEntry
impl StructuralPartialEq for ForcedIpEntry
Auto Trait Implementations§
impl Freeze for ForcedIpEntry
impl RefUnwindSafe for ForcedIpEntry
impl Send for ForcedIpEntry
impl Sync for ForcedIpEntry
impl Unpin for ForcedIpEntry
impl UnsafeUnpin for ForcedIpEntry
impl UnwindSafe for ForcedIpEntry
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.