fn fmt()

in plasma-stream/src/request.rs [258:277]


    fn fmt(&self, f: &mut Formatter) -> core::fmt::Result {
        match self {
            PeerRequest::Copy { from, objects } => {
                write!(
                    f,
                    "COPY {} {:?}",
                    from,
                    objects.iter().map(hex::encode).collect::<Vec<_>>()
                )
            }
            PeerRequest::Take { from, objects } => {
                write!(
                    f,
                    "TAKE {} {:x?}",
                    from,
                    objects.iter().map(hex::encode).collect::<Vec<_>>()
                )
            }
        }
    }