pub struct SceneStreamLimits { /* private fields */ }Available on crate feature
websocket only.Expand description
The outbound rate limit a SceneStreamHandler applies, per
connection. The default is the draft’s (§Rate Limiting):
“SceneObjectEvent with event: "updated": no more than two events
per object per second. Events above this rate MAY be silently dropped;
the most recent state SHOULD be delivered when the rate window
reopens.” The latest one over the limit is held and sent when the
window reopens, after the delivery checks run again.
The interaction limit is per user, so it is the SceneEventHub’s.
Implementations§
Source§impl SceneStreamLimits
impl SceneStreamLimits
Sourcepub fn object_update_window(self, window: Option<Duration>) -> Self
pub fn object_update_window(self, window: Option<Duration>) -> Self
The object-update window: at most two "updated" events per object
in it, the latest one over the limit sent when it reopens; None
for no limit.
Sourcepub fn object_update_window_value(&self) -> Option<Duration>
pub fn object_update_window_value(&self) -> Option<Duration>
The object-update window.
Trait Implementations§
Source§impl Clone for SceneStreamLimits
impl Clone for SceneStreamLimits
impl Copy for SceneStreamLimits
Source§impl Debug for SceneStreamLimits
impl Debug for SceneStreamLimits
Source§impl Default for SceneStreamLimits
impl Default for SceneStreamLimits
impl Eq for SceneStreamLimits
Source§impl PartialEq for SceneStreamLimits
impl PartialEq for SceneStreamLimits
impl StructuralPartialEq for SceneStreamLimits
Auto Trait Implementations§
impl Forget for SceneStreamLimits
impl Freeze for SceneStreamLimits
impl Move for SceneStreamLimits
impl RefUnwindSafe for SceneStreamLimits
impl Send for SceneStreamLimits
impl Sync for SceneStreamLimits
impl Unpin for SceneStreamLimits
impl UnsafeUnpin for SceneStreamLimits
impl UnwindSafe for SceneStreamLimits
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