Struct puffin_http::Client
source · pub struct Client { /* private fields */ }
Expand description
Connect to a crate::Server
, reading profile data
and feeding it to a puffin::FrameView
.
Will retry connection until it succeeds, and reconnect on failures.
Implementations§
source§impl Client
impl Client
sourcepub fn new(addr: String) -> Self
pub fn new(addr: String) -> Self
Connects to the given http address receives puffin profile data
that is then fed to puffin::GlobalProfiler
.
You can then view the data with
puffin_egui
.
puffin_http::Client::new("127.0.0.1:8585".to_owned());
sourcepub fn frame_view(&self) -> MutexGuard<'_, FrameView>
pub fn frame_view(&self) -> MutexGuard<'_, FrameView>
Get the current data.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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