pub struct Session {
pub id: Uuid,
pub codename: String,
pub url: String,
pub title: String,
pub user_agent: String,
pub top_origin: String,
pub socket_state: SocketState,
pub connected_at: DateTime<Utc>,
pub last_heartbeat: DateTime<Utc>,
pub console_buffer: Vec<ConsoleEvent>,
pub network_buffer: Vec<NetworkEvent>,
}Expand description
A live browser session connected to the daemon.
Fields§
§id: Uuid§codename: String§url: String§title: String§user_agent: String§top_origin: String§socket_state: SocketState§connected_at: DateTime<Utc>§last_heartbeat: DateTime<Utc>§console_buffer: Vec<ConsoleEvent>§network_buffer: Vec<NetworkEvent>Implementations§
Source§impl Session
impl Session
pub fn new( id: Uuid, codename: String, url: String, title: String, user_agent: String, top_origin: String, ) -> Self
Sourcepub fn push_console_events(&mut self, events: Vec<ConsoleEvent>)
pub fn push_console_events(&mut self, events: Vec<ConsoleEvent>)
Append console events, enforcing buffer limit.
Sourcepub fn push_network_events(&mut self, events: Vec<NetworkEvent>)
pub fn push_network_events(&mut self, events: Vec<NetworkEvent>)
Append network events, enforcing buffer limit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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