pub struct Listener {
pub address: String,
pub rate_limit: u32,
}Expand description
待ち受ける口
Fields§
§address: String待ち受けるアドレス(127.0.0.1:3000 など)
rate_limit: u32この口で、1 秒あたりに答える要求の数。どの道への要求も数え、超えたら 429。0 なら絞らない
Trait Implementations§
impl Eq for Listener
impl StructuralPartialEq for Listener
Auto Trait Implementations§
impl Freeze for Listener
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnsafeUnpin for Listener
impl UnwindSafe for Listener
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